# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=dnspy
pkgver=6.1.8
pkgrel=2
pkgdesc='.NET debugger and assembly editor.'
url='https://github.com/0xd4d/dnSpy/'
groups=('blackarch' 'blackarch-windows' 'blackarch-decompiler'
        'blackarch-binary' 'blackarch-reversing')
license=('GPL3')
arch=('any')
source=("$pkgname-$pkgver.zip::https://github.com/0xd4d/dnSpy/archive/v$pkgver.zip")
#source=("$pkgname-$pkgver.zip::https://github.com/0xd4d/dnSpy/releases/download/v$pkgver/dnSpy-net472.zip")
sha512sums=('0f739be9fccd4aa8295f9a54e9b9f23a5dbb21bf0674969d0ca7878ce73e3788c2fff1a38764d3ecf6b529bdebbcd2ec9ff57677d0e67d446865e0a0042cc28e')

package() {
  install -dm 755 "$pkgdir/usr/share/windows/$pkgname"

  rm "$pkgname-$pkgver.zip"

  cp -a "dnSpy-$pkgver"/* "$pkgdir/usr/share/windows/$pkgname/"
}

